package blog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Link;
import blog.mapper.LinkMapper;
import blog.service.LinkService;
@Service
public class LinkServiceImpl implements LinkService {
	@Resource
	LinkMapper linkMapper;

	@Override
	public List<Link> findAll() {
		return linkMapper.findAll();
	}

	@Override
	public void deleteLinkById(Integer linkId) {
		linkMapper.deleteLinkById(linkId);
	}

	@Override
	public void add(Link link) {
		linkMapper.add(link);
	}

}
